package sanrenxing.right.entity;

public class RoleEntity {
    //定义角色id
    private int roleId;
    //定义角色名字
    private String roleName;

    /**
     * 无参构造
     */
    public  RoleEntity(){}

    /**
     * 带参构造
     * @param roleId
     * @param roleName
     */
    public RoleEntity(int roleId, String roleName) {
        this.roleId = roleId;
        this.roleName = roleName;
    }

    //getter和setter方法
    public int getRoleId() {
        return roleId;
    }

    public void setRoleId(int roleId) {
        this.roleId = roleId;
    }

    public String getRoleName() {
        return roleName;
    }

    public void setRoleName(String roleName) {
        this.roleName = roleName;
    }

    @Override
    public String toString() {
        return "RoleEntity{" +
                "roleId=" + roleId +
                ", roleName='" + roleName + '\'' +
                '}';
    }
}
